﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace RuoVea.Web.Template.Web.Controllers;

public class HomeController : Controller
{
    private readonly ILogger<HomeController> _logger;
    private readonly DefultDbContext _dbContext;

    public HomeController(ILogger<HomeController> logger, DefultDbContext dbContext)
    {
        _logger = logger;
        _dbContext = dbContext;
    }

    public IActionResult Index()
    { 
        return View();
    }
    public IActionResult Privacy()
    {
        return View();
    }

    /// <summary>
    /// 健康检查
    /// </summary>
    /// <returns></returns>
    [HttpGet]
    [AllowAnonymous]
    [NonRestfulResult]
    public string Heath()
    {
        return "OK";
    }

}